'use strict';
module.exports = (sequelize, DataTypes) => {
  const Car = sequelize.define('Car', {
    status: DataTypes.STRING,
    carNumber: DataTypes.STRING,
    engineNumber: DataTypes.STRING,
    engineDelivery: DataTypes.STRING,
    carMileage: DataTypes.INTEGER,
    carPicture: DataTypes.STRING,
    isUsable: DataTypes.BOOLEAN,
    note: DataTypes.STRING,
  }, {});
  Car.associate = function(models) {
    // associations can be defined here
    Car.belongsTo(models.CarFence);

  };
  return Car;
};